home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1993-03-16 | 1.8 KB | [TEXT/KAHL] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| Compact Compressed (Unix) (archive/compact)
| ext
| Supported |
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Tue Mar 16 00:57:12 1993, modified Tue Mar 16 00:57:12 1993, creator Think C, type ASCII, 1118 bytes "kbhit.c" , at 0x4de 462 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [KAHL] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 07 6b 62 68 69 74 2e | 63 00 00 00 00 00 00 00 |..kbhit.|c.......|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 01 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 04 5e 00 | 00 01 ce a7 cb 1c b8 a7 |......^.|........|
|00000060| cb 1c b8 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 ea a8 00 00 |........|........|
|00000080| 2f 2a 0d 6b 62 68 69 74 | 2e 63 0d 36 2f 31 33 2f |/*.kbhit|.c.6/13/|
|00000090| 39 30 09 64 67 70 20 77 | 72 6f 74 65 20 69 74 2c |90.dgp w|rote it,|
|000000a0| 20 62 61 73 65 64 20 6f | 6e 20 73 75 67 67 65 73 | based o|n sugges|
|000000b0| 74 69 6f 6e 20 66 72 6f | 6d 20 4d 69 63 68 61 65 |tion fro|m Michae|
|000000c0| 6c 20 4b 61 68 6c 20 61 | 6e 64 20 61 6e 20 65 61 |l Kahl a|nd an ea|
|000000d0| 72 6c 69 65 72 20 76 65 | 72 73 69 6f 6e 20 62 79 |rlier ve|rsion by|
|000000e0| 0d 09 09 45 76 61 6e 20 | 52 65 6c 6b 69 6e 2e 0d |...Evan |Relkin..|
|000000f0| 32 2f 31 36 2f 39 33 09 | 64 67 70 09 61 64 64 65 |2/16/93.|dgp.adde|
|00000100| 64 20 59 65 73 4f 72 4e | 6f 28 29 2e 0d 2a 2f 0d |d YesOrN|o()..*/.|
|00000110| 23 69 66 6e 64 65 66 20 | 54 48 49 4e 4b 5f 43 0d |#ifndef |THINK_C.|
|00000120| 09 23 65 72 72 6f 72 20 | 22 53 6f 72 72 79 2c 20 |.#error |"Sorry, |
|00000130| 6b 62 68 69 74 2e 63 20 | 72 65 71 75 69 72 65 73 |kbhit.c |requires|
|00000140| 20 54 48 49 4e 4b 20 43 | 2e 22 0d 23 65 6e 64 69 | THINK C|.".#endi|
|00000150| 66 0d 23 69 6e 63 6c 75 | 64 65 20 22 56 69 64 65 |f.#inclu|de "Vide|
|00000160| 6f 54 6f 6f 6c 62 6f 78 | 2e 68 22 0d 23 69 6e 63 |oToolbox|.h".#inc|
|00000170| 6c 75 64 65 20 3c 63 6f | 6e 73 6f 6c 65 2e 68 3e |lude <co|nsole.h>|
|00000180| 0d 0d 69 6e 74 20 6b 62 | 68 69 74 28 76 6f 69 64 |..int kb|hit(void|
|00000190| 29 0d 7b 0d 09 69 6e 74 | 20 63 3b 0d 0d 09 63 20 |).{..int| c;...c |
|000001a0| 3d 20 67 65 74 63 68 61 | 72 55 6e 62 75 66 66 65 |= getcha|rUnbuffe|
|000001b0| 72 65 64 28 29 3b 0d 09 | 69 66 20 28 63 20 3d 3d |red();..|if (c ==|
|000001c0| 20 45 4f 46 29 20 72 65 | 74 75 72 6e 20 30 3b 0d | EOF) re|turn 0;.|
|000001d0| 09 75 6e 67 65 74 63 28 | 63 2c 20 73 74 64 69 6e |.ungetc(|c, stdin|
|000001e0| 29 3b 0d 09 72 65 74 75 | 72 6e 20 31 3b 0d 7d 0d |);..retu|rn 1;.}.|
|000001f0| 0d 69 6e 74 20 67 65 74 | 63 68 61 72 55 6e 62 75 |.int get|charUnbu|
|00000200| 66 66 65 72 65 64 28 76 | 6f 69 64 29 0d 7b 0d 09 |ffered(v|oid).{..|
|00000210| 69 6e 74 20 63 3b 0d 0d | 09 63 73 65 74 6d 6f 64 |int c;..|.csetmod|
|00000220| 65 28 43 5f 52 41 57 2c | 73 74 64 69 6e 29 3b 09 |e(C_RAW,|stdin);.|
|00000230| 09 2f 2a 20 75 6e 62 75 | 66 66 65 72 65 64 2c 20 |./* unbu|ffered, |
|00000240| 6e 6f 20 65 63 68 6f 2c | 20 6e 6f 20 65 64 69 74 |no echo,| no edit|
|00000250| 69 6e 67 20 2a 2f 0d 09 | 63 20 3d 20 67 65 74 63 |ing */..|c = getc|
|00000260| 68 61 72 28 29 3b 0d 09 | 63 73 65 74 6d 6f 64 65 |har();..|csetmode|
|00000270| 28 43 5f 45 43 48 4f 2c | 73 74 64 69 6e 29 3b 09 |(C_ECHO,|stdin);.|
|00000280| 09 2f 2a 20 64 65 66 61 | 75 6c 74 20 6d 6f 64 65 |./* defa|ult mode|
|00000290| 3a 20 6c 69 6e 65 2d 62 | 75 66 66 65 72 65 64 2c |: line-b|uffered,|
|000002a0| 20 65 63 68 6f 2c 20 66 | 75 6c 6c 20 65 64 69 74 | echo, f|ull edit|
|000002b0| 69 6e 67 20 2a 2f 0d 09 | 72 65 74 75 72 6e 20 63 |ing */..|return c|
|000002c0| 3b 0d 7d 0d 0d 2f 2f 20 | 41 63 63 65 70 74 20 6f |;.}..// |Accept o|
|000002d0| 6e 65 20 63 68 61 72 61 | 63 74 65 72 20 79 65 73 |ne chara|cter yes|
|000002e0| 2f 6e 6f 20 61 6e 73 77 | 65 72 20 61 6e 64 20 73 |/no answ|er and s|
|000002f0| 70 65 6c 6c 20 6f 75 74 | 20 22 59 65 73 22 20 6f |pell out| "Yes" o|
|00000300| 72 20 22 4e 6f 22 0d 42 | 6f 6f 6c 65 61 6e 20 59 |r "No".B|oolean Y|
|00000310| 65 73 4f 72 4e 6f 28 42 | 6f 6f 6c 65 61 6e 20 64 |esOrNo(B|oolean d|
|00000320| 65 66 61 75 6c 74 41 6e | 73 77 65 72 29 0d 7b 0d |efaultAn|swer).{.|
|00000330| 09 63 68 61 72 20 63 3b | 0d 09 42 6f 6f 6c 65 61 |.char c;|..Boolea|
|00000340| 6e 20 61 6e 73 77 65 72 | 3b 0d 09 0d 09 69 66 28 |n answer|;....if(|
|00000350| 64 65 66 61 75 6c 74 41 | 6e 73 77 65 72 29 70 72 |defaultA|nswer)pr|
|00000360| 69 6e 74 66 28 22 20 28 | 59 65 73 29 3a 22 29 3b |intf(" (|Yes):");|
|00000370| 0d 09 65 6c 73 65 20 70 | 72 69 6e 74 66 28 22 20 |..else p|rintf(" |
|00000380| 28 4e 6f 29 3a 22 29 3b | 0d 09 66 66 6c 75 73 68 |(No):");|..fflush|
|00000390| 28 73 74 64 6f 75 74 29 | 3b 0d 09 64 6f 7b 0d 09 |(stdout)|;..do{..|
|000003a0| 09 63 3d 67 65 74 63 68 | 61 72 55 6e 62 75 66 66 |.c=getch|arUnbuff|
|000003b0| 65 72 65 64 28 29 3b 0d | 09 7d 77 68 69 6c 65 28 |ered();.|.}while(|
|000003c0| 63 3d 3d 2d 31 29 3b 0d | 09 69 66 28 63 3d 3d 31 |c==-1);.|.if(c==1|
|000003d0| 34 29 61 62 6f 72 74 28 | 29 3b 09 09 09 09 09 09 |4)abort(|);......|
|000003e0| 09 2f 2f 20 43 72 75 64 | 65 20 74 65 73 74 20 66 |.// Crud|e test f|
|000003f0| 6f 72 20 63 6f 6d 6d 61 | 6e 64 2d 70 65 72 69 6f |or comma|nd-perio|
|00000400| 64 2e 0d 09 69 66 28 64 | 65 66 61 75 6c 74 41 6e |d...if(d|efaultAn|
|00000410| 73 77 65 72 29 61 6e 73 | 77 65 72 3d 21 28 74 6f |swer)ans|wer=!(to|
|00000420| 6c 6f 77 65 72 28 63 29 | 3d 3d 27 6e 27 29 3b 09 |lower(c)|=='n');.|
|00000430| 2f 2f 20 41 6e 79 74 68 | 69 6e 67 20 62 75 74 20 |// Anyth|ing but |
|00000440| 27 6e 27 20 6f 72 20 27 | 4e 27 20 6d 65 61 6e 73 |'n' or '|N' means|
|00000450| 20 79 65 73 0d 09 65 6c | 73 65 20 61 6e 73 77 65 | yes..el|se answe|
|00000460| 72 3d 28 74 6f 6c 6f 77 | 65 72 28 63 29 3d 3d 27 |r=(tolow|er(c)=='|
|00000470| 79 27 29 3b 09 09 09 09 | 2f 2f 20 41 6e 79 74 68 |y');....|// Anyth|
|00000480| 69 6e 67 20 62 75 74 20 | 27 79 27 20 6f 72 20 27 |ing but |'y' or '|
|00000490| 59 27 20 6d 65 61 6e 73 | 20 6e 6f 0d 09 69 66 28 |Y' means| no..if(|
|000004a0| 61 6e 73 77 65 72 29 70 | 72 69 6e 74 66 28 22 59 |answer)p|rintf("Y|
|000004b0| 65 73 2e 22 29 3b 0d 09 | 65 6c 73 65 20 70 72 69 |es.");..|else pri|
|000004c0| 6e 74 66 28 22 4e 6f 2e | 22 29 3b 0d 09 72 65 74 |ntf("No.|");..ret|
|000004d0| 75 72 6e 20 61 6e 73 77 | 65 72 3b 0d 7d 0d 00 00 |urn answ|er;.}...|
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000500| 00 00 01 00 00 00 01 7c | 00 00 00 7c 00 00 00 52 |.......||...|...R|
|00000510| 61 69 6e 20 73 63 72 65 | 65 6e 20 56 42 4c 20 71 |ain scre|en VBL q|
|00000520| 75 65 75 65 2a 2f 0d 20 | 20 20 20 53 6c 6f 74 54 |ueue*/. | SlotT|
|00000530| 07 6b 62 68 69 74 2e 63 | 02 00 00 00 54 45 58 54 |.kbhit.c|....TEXT|
|00000540| 4b 41 48 4c 00 00 00 00 | 00 00 00 00 00 00 32 00 |KAHL....|......2.|
|00000550| 00 00 54 45 58 54 4b 41 | 48 4c 00 00 00 00 00 00 |..TEXTKA|HL......|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 a7 e5 d5 bc 00 00 | 00 00 00 00 01 ce 61 62 |........|......ab|
|00000580| 6c 65 53 65 65 64 20 3d | 20 30 78 30 44 32 30 2c |leSeed =| 0x0D20,|
|00000590| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 2f 2a 5b | | /*[|
|000005a0| 47 4c 4f 42 41 4c 20 56 | 41 52 5d 20 20 28 6c 6f |GLOBAL V|AR] (lo|
|000005b0| 6e 67 29 20 73 65 65 64 | 20 76 61 6c 75 65 20 66 |ng) seed| value f|
|000005c0| 6f 72 20 63 6f 6c 6f 72 | 20 74 61 62 6c 65 20 49 |or color| table I|
|000005d0| 44 27 73 2a 2f 0d 20 20 | 20 20 53 52 73 72 63 54 |D's*/. | SRsrcT|
|000005e0| 62 6c 50 74 72 20 3d 20 | 30 78 30 44 32 34 20 20 |blPtr = |0x0D24 |
|000005f0| 20 20 20 20 20 20 20 20 | 20 20 2f 2a 5b 47 4c 4f | | /*[GLO|
|00000600| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 3b 00 09 |...H..Mo|naco.;..|
|00000610| 00 00 00 14 00 01 a1 bc | 00 0a 00 3a 00 09 00 45 |........|...:...E|
|00000620| 02 3b 00 00 00 00 00 06 | 00 04 00 8e 00 16 01 ba |.;......|........|
|00000630| 02 60 00 8e 00 16 01 ba | 02 60 a4 de 2c fb 00 00 |.`......|.`..,...|
|00000640| 02 52 00 00 02 52 00 00 | 00 00 01 00 00 00 00 1e |.R...R..|........|
|00000650| 00 8e 00 16 01 ba 02 60 | 00 8e 00 16 01 ba 02 60 |.......`|.......`|
|00000660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000670| 00 0a 00 00 03 09 00 28 | 00 00 00 00 00 00 01 00 |.......(|........|
|00000680| 00 00 01 7c 00 00 00 7c | 00 00 00 52 00 5e f7 84 |...|...||...R.^..|
|00000690| 15 4e 00 00 00 1c 00 52 | 00 01 4d 50 53 52 00 01 |.N.....R|..MPSR..|
|000006a0| 00 12 42 4b 50 54 00 00 | 00 2a 03 ed ff ff 00 00 |..BKPT..|.*......|
|000006b0| 00 00 00 00 00 00 03 f0 | ff ff 00 00 00 4c 00 00 |........|.....L..|
|000006c0| 00 00 42 1f ff ff 00 00 | 00 6e 00 00 00 00 00 00 |..B.....|.n......|
|000006d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+